package router

import (
	"github.com/gin-gonic/gin"
	"huang-rong-eye/handler"
)

func Init() *gin.Engine {
	r := gin.Default()

	r.POST("/login", handler.Login)

	r.GET("/list", handler.List)

	r.GET("/detail", handler.Detail)
	return r
}
